<?php

/**
 * @Author: XHH
 * @Date:   2019-01-04 10:26:16
 * @Last Modified by:   XHH
 * @Last Modified time: 2019-01-07 22:11:13
 */
//数据操作类
require('Request.php');
//输出类
require('Response.php');
//连接数据库
Request::CreateConn();
//获取数据
$data = Request::getRequest();

$data_array = array( );
//将数据放入数组
if (is_array($data)){
	$data_array=$data;
}else{
	while ($row = mysqli_fetch_array($data,MYSQLI_ASSOC)) {
		$data_array[] = $row;
	}	
}
//输出结果
Response::sendResponse($data_array);
